﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NTmdb.Fakes;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for TmdbCollectionMethodExtensionTest and is intended
    ///     to contain all TmdbCollectionMethodExtensionTest Unit Tests
    /// </summary>
    [TestClass]
    public class TmdbCollectionMethodExtensionTest
    {
        /// <summary>
        ///     A test for ToTmdbParameter
        /// </summary>
        [TestMethod]
        public void ToTmdbParameterTest()
        {
            IApiConfiguration apiConfiguration = new StubIApiConfiguration();
            apiConfiguration.MovieCollectionAppendImages = Guid.NewGuid().ToString();
            Assert.AreEqual( apiConfiguration.MovieCollectionAppendImages,
                             TmdbCollectionMethod.Images.ToTmdbParameter( apiConfiguration ) );
        }
    }
}